/*
	File:		TankBot.h
	Author:		Ben Feldmann
	Purpose:	Class to manage game TankBot enemies
*/

#pragma once

#include "Enemy.h"
#include "SGD Wrappers/SGD_Math.h"
class Player;

class TankBot : public Enemy 
{
public:
	TankBot();

	~TankBot();

	void Update(float elapsed);

	void Render();

	bool CheckCollision(IEntity* base);

	void Attack(void);

	void SpecialAttack(float elapsed);

	RECT GetRect();

	int GetMax() {return maxHealth;}

	// Pure virtual method from IListener
	virtual void HandleEvent(Event* thisEvent);

	void SetAnimation(int id[8]);

private:
	bool inRange;
	int attackPlace;
	int tanktime;
	Player* target;
	Animation TankAnimation[8];
	float damage;
	int maxHealth;
	int AttackSound;
	int WalkSound;
	int DeathSound;
	int FireSound;
	float BackAwayTimer;
};
